package com.ny.mapper;

import com.ny.entity.Reservations;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ReservationMapper {
    void addReservation(Reservations reservation);
    List<Reservations> findAllReservations();
    void updateReservationStatus (@Param("reservationId") int reservationId, @Param("status") String status, @Param("rejectReason") String rejectReason);
    @Select(" SELECT * FROM reservations" )
    List<Reservations> findAllCenterReservations();

}
